package com.example.demo.service.database;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.DataBaseConfig;
import com.example.demo.pojo.vo.DataBaseAdd;
import com.example.demo.pojo.vo.QuerySql;

import java.sql.SQLException;
import java.util.List;

public interface IDatabaseService extends IService<DataBaseConfig> {
    String createDatabase(DataBaseAdd dataBaseAdd) throws Exception;
    List<DataBaseConfig> getAllDatabases() throws Exception;

    void querySql(QuerySql querySql)throws Exception;

    List<String> getAllTables(String databaseName) throws SQLException;
}
